package priv.mill.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import priv.mill.model.Employee;

@Mapper
public interface EmployeeMapper {

//	@Select("select * from employee where id=5")
	public List<Employee> findAll();// List<Map<String, Object>>
	
	public List<Employee> findAllTwo();// List<Map<String, Object>>
	
	public Employee findById(@Param("fdsafdsasfdsas")int id,String name);
	
//	@Insert("insert into employee (u_name,u_phone,u_age) values (#{name},#{phone},#{age})")
	public Long insert(Employee emp);
	
	
//	@Update("update employee set "
//			+ "u_name=#{name}, u_phone=#{phone},u_age=#{age} where id=#{id}")
	public boolean update(Map<String, Object> map);
	
	
}
